package com.project.service.base.redis;

public interface RedisCacheService {

    void remove(final String... keys); //批量删除对应的value

    void removePattern(final String pattern); //批量删除key

    void remove(final String key); //删除对应的value

    boolean exists(final String key); //判断缓存中是否有对应的value

    Object get(final String key); // 读取缓存

    void set(final String key, Object value); // 写入缓存

    void set(final String key, Object value, Long expireTime); // 写入缓存

}
